<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
/* 
        text-aline
        属性值:
        center      居中对齐
        right       居右对齐
*/
        div{
            height: 100px;
            font-size :60px;
            font-weight: 700;
            text-align: center;
            background-color: aqua;
            
        }
    </style>
</head>
<body>
    <div>居中</div>
</body>
</html>